package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_StockFrozenRunning", catalog="Id")
public class TccStockFrozenRunning extends BaseEntity<TccStockFrozenRunning> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="StockControlId", nameJava="stockControlId", typeDataBase="bigint")
	private Long stockControlId;
	@YsField(nameDataBase="NumChange", nameJava="numChange", typeDataBase="int")
	private Integer numChange;
	@YsField(nameDataBase="NumLeft", nameJava="numLeft", typeDataBase="int")
	private Integer numLeft;
	@YsField(nameDataBase="SourceType", nameJava="sourceType", typeDataBase="tinyint")
	private Integer sourceType;
	@YsField(nameDataBase="SourceBid", nameJava="sourceBid", typeDataBase="varchar")
	private String sourceBid;
	@YsField(nameDataBase="SourceId", nameJava="sourceId", typeDataBase="bigint")
	private Long sourceId;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccStockFrozenRunning setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getStockControlId() {
		return stockControlId;
	}
	public TccStockFrozenRunning setStockControlId(Long stockControlId) {
		this.stockControlId = stockControlId;
		return this;
	}
	public Integer getNumChange() {
		return numChange;
	}
	public TccStockFrozenRunning setNumChange(Integer numChange) {
		this.numChange = numChange;
		return this;
	}
	public Integer getNumLeft() {
		return numLeft;
	}
	public TccStockFrozenRunning setNumLeft(Integer numLeft) {
		this.numLeft = numLeft;
		return this;
	}
	public Integer getSourceType() {
		return sourceType;
	}
	public TccStockFrozenRunning setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
		return this;
	}
	public String getSourceBid() {
		return sourceBid;
	}
	public TccStockFrozenRunning setSourceBid(String sourceBid) {
		this.sourceBid = sourceBid;
		return this;
	}
	public Long getSourceId() {
		return sourceId;
	}
	public TccStockFrozenRunning setSourceId(Long sourceId) {
		this.sourceId = sourceId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccStockFrozenRunning setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccStockFrozenRunning setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccStockFrozenRunning setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccStockFrozenRunning tccStockFrozenRunning(
		Long stockControlId,
		Integer numChange,
		Integer numLeft,
		Integer sourceType,
		String sourceBid,
		Long sourceId,
		Integer status
			) {
		TccStockFrozenRunning entity = new TccStockFrozenRunning();
		entity.setStockControlId(stockControlId);
		entity.setNumChange(numChange);
		entity.setNumLeft(numLeft);
		entity.setSourceType(sourceType);
		entity.setSourceBid(sourceBid);
		entity.setSourceId(sourceId);
		entity.setStatus(status);
		return entity;
	}
}